Defining the Dialog

A dialog in the DRUID ChatBot Platform is a structured conversation that outlines responses to defined intents. It consists of one or multiple flow steps, each contributing to the overall interaction between the user and the bot.

Dialogs are crucial for bot functionality, as they dictate how the bot interprets user input and executes responses. To define a dialog effectively, it's essential to grasp how the chatbot processes user input and how the Flow Engine executes flow steps.

Follow these steps to define a dialog using the Flow Designer:

Step 1. Add the first flow step

  1. Access the Flow Palette and select the desired flow step type from the appropriate category.
  2. Drag the selected flow step type into the working area to add it as the first step.
  3. Note:  The Flow Designer automatically designates the first added step as the initial step (marked with START).

  4. Customize the flow step based on your requirements using the Flow Step Editor. To configure the flow step, click on it and on the Actions menu, click the settings icon (). In the Flow Step Editor make the desired flow step configuration. For information on how to configure flow steps, see Generic Flow Step Configuration Settings and Flow Step Types.
  5. Hint:  Alternatively, use the Flow Designer in list view or the Flow Diagram to add new steps.
Note:  You cannot add two flow steps with the same Step name; therefore, in order to add a new step to the flow, you need to change the default Step name of the existing step. For information on how to do that, see General.

Step 2. Add child flow steps

For complex bot designs requiring multiple steps and nested structures, add child flow steps.

Note:  Child flow steps should address singular tasks to maintain conversation clarity.

Drag predefined flow steps from the Flow Palette onto parent steps or use the Add step icon (). Customize child steps as needed, ensuring a logical flow of conversation.

You can also add a common predefined child flow step by clicking the Add step icon () displayed at the bottom of an existing step (that will be the parent step). The common flow step types toolbar appears.

Select the step type. A child step of the selected type appears on the working area under the parent step. An arrow connects the parent flow step with its child flow steps in a tree-like structure.

To add a child step on a flow step, click the AddChildStep icon displayed in line with the step.

A new child step of type message is added to the flow step. On the main flow step, a green label is added. This label allows you to specify the condition (if any) based on which the Flow engine will execute the child flow step. For more information on the logic the chatbot uses to process user input, see Conversation Lifecycle.

Note:   You cannot add two child flow steps with the same Step message on a flow step; therefore, in order to add a new child step to the flow, you need to change the default Step message of the existing child step. For information on how to do that, see General.
Hint:  If you want the Flow Engine to execute child steps only if specific conditions are met, you can set up conditions on steps. For more information, see Setting Up Conditions on Steps.

Step 3. Fine-tune the dialog with extensive configurations

DRUID offers extensive configurations to tailor dialogs to your bot's requirements: